/**
 * 
 */
package org.swing.utility.jai.bean;

import java.util.Date;

/**
 * @author Quynh Nhu
 *
 */
public class Photo {
	  private Date date;

	  private String description;

	  private Short frameNumber;

	  private Integer id;

	  private Location location;

	  private Occasion occasion;

	  private PhotoSet photoSet;

	  private String title;

	  public Photo() {
	  }

	  public Photo(final String title, final String description) {
	    this.title = title;
	    this.description = description;
	  }

	  public Date getDate() {
	    return date;
	  }

	  public String getDescription() {
	    return description;
	  }

	  public Short getFrameNumber() {
	    return frameNumber;
	  }

	  public Integer getId() {
	    return id;
	  }

	  public Location getLocation() {
	    return location;
	  }

	  public Occasion getOccasion() {
	    return occasion;
	  }

	  public PhotoSet getPhotoSet() {
	    return photoSet;
	  }

	  public String getTitle() {
	    return title;
	  }

	  public void setDate(final Date date) {
	    this.date = date;
	  }

	  public void setDescription(final String description) {
	    this.description = description;
	  }

	  public void setFrameNumber(final Short frameNumber) {
	    this.frameNumber = frameNumber;
	  }

	  private void setId(final Integer id) {
	    this.id = id;
	  }

	  public void setLocation(final Location location) {
	    this.location = location;
	  }

	  public void setOccasion(final Occasion occasion) {
	    this.occasion = occasion;
	  }

	  public void setPhotoSet(final PhotoSet roll) {
	    this.photoSet = roll;
	  }

	  public void setTitle(final String title) {
	    this.title = title;
	  }
	  /*
	   * public int compareTo(Object o) { if (equals(o)) { return 0; } Photo photo =
	   * (Photo)o; int rollCompare = 0; if (roll == null && photo.roll == null) {
	   * rollCompare = 0; } else if (roll == null) { return -1; } else if
	   * (photo.roll == null) { return 1; } else { rollCompare =
	   * roll.compareTo(photo.roll); } if (rollCompare == 0) { if (frameNumber ==
	   * photo.frameNumber) { return 0; } else if (frameNumber == null) { return -1; }
	   * else if (photo.frameNumber == null) { return 1; } return
	   * frameNumber.compareTo(photo.frameNumber); } return rollCompare; }
	   */
	}
